<link href="../addons/jy_mjicai/custom/templates/mobile/agent/style.css?v=202105251730" rel="stylesheet">
<style type="text/css">
	.icon1 {
		width: .8rem; height: .8rem;
		vertical-align: -0.15em;
		fill: currentColor;
		overflow: hidden;
	}
</style>
<!--<div class="fe-floatback right" style="left:0.2rem">
		<a href="javascript:void(0);" ng-click="access_json('jy_weishop/index/')">
		<i class="icon jinyunicon icon-back"></i>
		</a>
</div>-->
<div class="fui-page fui-page-current page-commission-index ">
    <div class='fui-content'>
	<div class="headinfo">
	    <div class="userinfo" style="height: auto;width:100%;padding-bottom:1.5rem;">
			<div class='fui-list'>
				<div class='fui-list-media'><img ng-src="{{tomedia(pagedata.member.avatar)}}" /></div>
				<div class='fui-list-info'>
					<div class='title'>{{pagedata.member.nickname}} </div>
					<div class='text' >推荐人: {{pagedata.member.agent.nickname}}
						<br>
					</div>
					<div>
						<span style="font-size:0.7rem;margin-top:0.3rem;color:#f2f2f2">({{pagedata.member.level}})<i class='icon icon-question' style='font-size:8px;'></i></span>
						<span ng-if="pagedata.pluginset.open_levediyfrom==1 && pagedata.showlevefrom" class="jylabel jylabel-info" href="javascript:;" ng-click="access_json('/leveapply/')" style="border: 1px solid #fff;color:#fff;">申请成为{{pagedata.tagent||'高级等级'}}</span>
					</div>
				</div>
				<a class="setbtn external jump"  href="javascript:;" ng-click="access_json('jy_mjicai/agent.info/main')" >
					<i class="icon jinyunicon icon-shezhi"></i>
				</a>
			</div>
		
	    </div>
	</div>
	<div style="padding:0.5rem;margin-top:-2rem">
		<div class="fui-icon-group noborder  col-2" style="background:#fff">
					<div class="fui-icon-col-sm c" style="margin:0">
								<div>
									<div class="text bold" style="line-height:1.6rem;font-size:1rem">
											{{pagedata.member.credit1 || 0}} 
									</div>
								<div style="font-size:12px;">当前积分 <span ng-if="pagedata.pluginset.isno_zhuan!=1" class="jylabel jylabel-info" href="javascript:;" ng-click="pagedata.post.isbaofee=0;pagedata.showzhuan=true;">转账</span></div>
								</div>
					</div>
					<div class="fui-icon-col-sm c" style="margin:0">
								<div>
									<div class="text bold" style="line-height:1.6rem;font-size:1rem">
											{{pagedata.member.baofee || 0.00}} 
									</div>
								<div style="font-size:12px;">{{pagedata.pluginset.db_title}}额度 <span ng-if="pagedata.pluginset.isno_zhuan!=1" class="jylabel jylabel-info" href="javascript:;" ng-click="pagedata.post.isbaofee=1;pagedata.showzhuan=true;">转账</span></div>
								</div>
					</div>
			</div>
		<div class="fui-cell-group" ng-if="pagedata.member.level_id > 0 && pagedata.member.t_time >0">
			<div class="fui-cell"style="height: 2.85rem;">
			    <div class="fui-cell-icon">
					<i class="icon jinyunicon icon-clock"></i>
				</div>
				<div class="fui-cell-text">有效期：{{pagedata.member.b_time}}
				</div>
			</div>
		</div>
		<div class="fui-cell-group">
			<div class="fui-cell"style="height: 2.85rem;">
				<div class="fui-cell-icon">
					<i class="icon jinyunicon icon-qrcode"></i>
				</div>
				<div class="fui-cell-text">我的邀请码：{{pagedata.member.mid}}
				</div>
			</div>
		</div>
		<div ng-if="pagedata.agentsetting.levelfee_type!=1" class="userblock">
			<div class="line total new">
				<div class="num">{{pagedata.data.balance_total || '0.00'}}</div>
				<div class="title">{{pagedata.setting.balance_total}}(元)</div>
			</div>
			<div class="line usable new">
				<div class="text">
					<div class="num">{{pagedata.data.commission_1  || '0.00'}}</div>
					<div class="title">{{pagedata.setting.commission_1}}(元)</div>
				</div>
				<a ng-click="access_json('jy_mjicai/agent.commission/main')" class="btn btn-warning external" ><span style="line-height: 1">查看</span></a>
			</div>
		</div>
		<div class="fui-block-group new col-2" style='overflow: hidden;'>
            <a ng-if="pagedata.agentsetting.levelfee_type!=1" class="fui-block-child new  external" href="javascript:;" ng-click="access_json('jy_mjicai/agent.commission/main')">
                <div class="icon " style="color: #ff4357;"><i class="icon jinyunicon icon-caifua"></i></div>
                <div class="text new">
					<div class="title">{{pagedata.setting.commission_total}}</div>
                    <div class=""><span>{{pagedata.data.commission_total || '0.00'}}</span> 元</div>
				</div>
            </a>
            <a class="fui-block-child new external" href="javascript:;" ng-click="access_json('jy_mjicai/agent.order/main')">
                <div class="icon" style="color: #9ec9f4;"><i class="icon jinyunicon icon-dingdan"></i></div>
				<div class="text new">
					<div class="title">{{pagedata.setting.torder}}</div>
					<div class=""><span>{{pagedata.ordernum || 0}}</span> 笔</div>
				</div>
            </a>
			 <a class="fui-block-child new  external" href="javascript:;" ng-click="access_json('jy_mjicai/agent.orderfee/main')">
                <div class="icon" style="color: #ffbe2e;"><i class="icon jinyunicon icon-wodeqianbao"></i></div>
				<div class="text new">
					<div class="title">佣金明细</div>
					<div class=""><span>{{pagedata.data.commission_num || 0}}</span> 笔</div>
				</div>
            </a>
            <a class="fui-block-child new  external" href="javascript:;" ng-click="access_json('jy_mjicai/agent.balance/main')">
                <div class="icon" style="color: #ffbe2e;"><i class="icon jinyunicon icon-wodeqianbao"></i></div>
				<div class="text new">
					<div class="title">{{pagedata.setting.tcommission_detail}}</div>
					<div class=""><span>{{pagedata.data.balance_num || 0}}</span> 笔</div>
				</div>
            </a>
            <a class="fui-block-child new  external" href="javascript:;" ng-click="access_json('jy_mjicai/agent.down/main')">
                <div class="icon "  style="color: #ff6e02;"><i class="icon jinyunicon icon-paihao0"></i></div>
				<div class="text new">
					<div class="title">{{pagedata.setting.tmydown}}</div>
					<div class=""><span>{{pagedata.member.member_num || 0}}</span>人</div>
				</div>
            </a>
		

	</div>
		<!--{/if}-->
		<div class="fui-cell-group">
			<a ng-show="pagedata.setting.closed_qrcode!=1"  href="javascript:;" ng-click="access_json('jy_mjicai/agent.qrcode/main')" class="fui-cell">
				<div class="fui-cell-icon ">
					<i class="icon jinyunicon icon-erweima text-yellow"></i>
				</div>
				<div class="fui-cell-text">推广二维码</div>
				<div class="fui-cell-remark" style="font-size: 0.5rem;"></div>
			</a>
			<a class="fui-cell" href="javascript:;" ng-click="access_json('jy_mjicai/agent.feelog/')">
				<div class="fui-cell-icon ">
					<i class="icon jinyunicon icon-category text-yellow"></i>
				</div>
				<div class="fui-cell-text">下单奖励</div>
				<div class="fui-cell-remark" style="font-size: 0.5rem;"></div>
			</a>
		</div>
		</div>
		<div class="fixed-title" style="margin-top:1rem">
							 <span class="befirst spacing">
								 <span class="icon icon-fengexianzuo" style="font-size:2rem;color:#666"></span>
							 </span> 
							 <span class="title-text bold" style="color:#333;line-height:2rem">分销建仓收益</span> 
							 <span class="spacing">
								 <span class="icon icon-fengexianyou" style="font-size:2rem;color:#666"></span>
							 </span>
			</div>
			<div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0">
				<i class='fa fa-comment-o'></i><br/>暂时没有任何记录!
			</div>
			<div style="padding:0 0.5rem">
			<div class='fui-list-group container' ng-show="pagedata.list.length>0" >
				<div class="fui-list goods-item" ng-repeat="item in pagedata.list">
					<div class="fui-list-inner">
						<div class='title'>
							<span class="label label-success">分销建仓收益</span>
							<span class="red" style="margin-left:0.3rem">{{item.fee}}</span>
							<span class="gray" style="font-size:0.6rem;"> {{item.db_title}}</span>
						</div>
						<div class='gray'>{{item.createtime}}</div>
					</div>
					<div class='fui-list-angle'>
						<span class='fui-label fui-label-default gray' style="background:#f2f2f2;border-radius:0.2rem;">{{item.remark}}</span>
					</div>
				</div>
			</div>
			</div>
    </div>

</div>
<div ng-include="sys_html('common/_h5game',true)"></div>
<div ng-click="pagedata.show_xieyi=true" class="fui-navbar-tip"><red>请先阅读</red>《{{pagedata.xieyi.title||'服务管理规则'}}》.</div>
<div ng-include="sys_html('agent/_footer')"></div>
<div ng-if="pagedata.show_xieyi" class="popup">
	<div class="popup-body">
		<div class="popup-center">
			<i class="closed icon icon-cuowu" style="font-size:1.2rem;top:105%;" ng-click="pagedata.show_xieyi=false"></i>
			<div class="content-images" style="padding:0.5rem;height:20rem; overflow-y:scroll;">
					<div class="title bold" style="font-size:0.8rem">{{pagedata.xieyi.title||'服务管理规则'}} / <small>Read Ggree</small></div>
					<div class="text" style="padding-top:0.5rem;font-size:0.7rem" ng-bind-html="trust(pagedata.xieyi.content)">
					</div>
			</div>
			<div class="modal-footer">
				<div ng-click="pagedata.show_xieyi=false;pagedata.post.check=1" class="mod-check" style="width: 100%; margin: 0;">我已阅读</div>
			</div>
		</div>
	</div>
</div>
<div ng-if="pagedata.showzhuan" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#fc6d60">
			<style>
				input{ caret-color: #fff}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showzhuan=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 2rem;padding-top:0.5rem;background:#fc6d60">
				<div class='fui-cell-title c' style="color:#fff">您正在进行转账操作
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-dixiaofei" style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="转账额度" ng-model="pagedata.post.fee"></div>
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-mobilephone"  style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="收款人账户/手机号" ng-model="pagedata.post.mobile"></div>
				</div>
			</div>
			<div class="weui_btn_area" style="margin:2rem;">
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#fff;color:#fc6d60" ng-click="post(pagedata.post,'congzhi')">确认转账</a>
			</div>
		</div>
	</div>
</div>
<script>
scope.tool.get_list('jy_mjicai/agent.index/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_mjicai/agent.index/getlist/');
}
</script>